import request from '@/utils/request'
export function domainsList(query) {
    return request({
        url: '/advert/domains/list',
        method: 'get',
        params: query
    })
}
export function storeMain(data) {
    return request({
        url: '/advert/domains/storeMain',
        method: 'post',
        data: data
    })
}
export function destroyDomains(data) {
    return request({
        url: '/advert/domains/destroy',
        method: 'post',
        data: data
    })
}
export function storeSub(data) {
    return request({
        url: '/advert/domains/storeSub',
        method: 'post',
        data: data
    })
}
export function mediaAgentList(query) {
    return request({
        url: '/advert/domains/mediaAgentList',
        method: 'get',
        params: query
    })
}
export function detailDomain(query) {
    return request({
        url: '/advert/domains/detail',
        method: 'get',
        params: query
    })
}

export function generateSub(query) {
    return request({
        url: '/advert/domains/generateSub',
        method: 'get',
        params: query
    })
}